package model;

public class SparePartUse {

	private int quantity;
	// link: SparePartUse 0...*-->1 SparePart
	private SparePart sparePart;

	/**
	 * TODO
	 * 
	 * @param quantity
	 * @param sparePart
	 * 
	 * @author Csaba Tarkanyi
	 */
	public SparePartUse(int quantity, SparePart sparePart) {
		this.quantity = quantity;
		this.sparePart = sparePart;
	}

	/**
	 * @return the quantity
	 * 
	 * @author Csaba Tarkanyi
	 */
	public int getQuantity() {
		return quantity;
	}

	/**
	 * @param quantity
	 *            the quantity to set
	 * 
	 * @author Csaba Tarkanyi
	 */
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	/**
	 * @return the sparePart
	 * 
	 * @author Csaba Tarkanyi
	 */
	public SparePart getSparePart() {
		return sparePart;
	}

	/**
	 * @param sparePart
	 *            the sparePart to set
	 * 
	 * @author Csaba Tarkanyi
	 */
	public void setSparePart(SparePart sparePart) {
		this.sparePart = sparePart;
	}

	@Override
	public String toString() {
		return quantity + " " + sparePart;
	}
}
